#ifndef __I2C_H__
#define __I2C_H__

#include "STC15FXXXX.H"
#include"delay.h"        
#include <intrins.h>  
#include <stdio.h>
#include <math.h>

#define GPIO_SCL  P2^1 //PCA9685时钟线
#define GPIO_SDA P2^0  //PCA9685数据线

bit I2C_WaitAck(void);
void I2C_Stop(void);
void I2C_Start(void);
void I2C_Delay(unsigned char i);
void delay(u16 i);
void I2C_SendByte(unsigned char byt);
unsigned char I2C_RecByte(void);
void delayms(u16 z);


#endif